package abi

import _ "github.com/mitchellh/mapstructure"

type Function struct {
	Name    string   `mapstructure:"name"`
	Inputs  []Input  `mapstructure:"inputs"`
	Outputs []Output `mapstructure:"outputs"`
}

type Input struct {
	Name string `mapstructure:"name"`
	Type string `mapstructure:"type"`
}

type Output struct {
	Name string `mapstructure:"name"`
	Type string `mapstructure:"type"`
}

type AbiRequest struct {
	Address  string                 `mapstructure:"address"`
	Sign     string                 `mapstructure:"sign"`
	FuncName string                 `mapstructure:"func_name"`
	Params   map[string]interface{} `mapstructure:"params"`
	ID       int32                  `mapstructure:"id"`
}
